package com.wslNB.mapper;

import com.wslNB.pojo.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserMapper {


    @Select("select * from user")
    List<UserInfo> findAll();


    @Insert("insert into user(username,password,birthday) values(#{username},#{password},#{birthday})")
    void insert(UserInfo userInfo);

}
